home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / etc / Emacs.ad.z / Emacs.ad
Encoding:
Text File  |  1998-05-21  |  10.1 KB  |  283 lines

  1. ! This is the app-defaults file for XEmacs.
  2. !
  3. ! This used to be identical to sample.Xdefaults, but the resources
  4. ! below have been rewritten to be as general as possible to avoid
  5. ! overriding user resources.  Other than the form rewriting, both
  6. ! files should be kept in sync. 
  7. ! The resources below are loaded into the XEmacs executable at compile-time:
  8. ! changes to .../etc/Emacs.ad made after XEmacs has been built will have no
  9. ! effect.
  10. ! However, you may copy .../etc/Emacs.ad to /usr/lib/X11/app-defaults/Emacs
  11. ! (or whatever the standard app-defaults directory is at your site) to cause
  12. ! it to be consulted at run-time.  (Do this only for site-wide customizations:
  13. ! personal customizations should be put into ~/.Xdefaults instead.)
  14. ! Note that the file must be named Emacs, not XEmacs.
  15. ! See the NEWS file (C-h n) or XEmacs manual (C-h i) for a description of
  16. ! the various resources and the syntax for setting them.
  17. ! Energize users: note that this is not the same app-defaults file that is
  18. ! used with the Energize-specific version of XEmacs.
  19.  
  20.  
  21. ! Colors and backgrounds.
  22. ! ======================
  23. ! The contrasts of these colors will cause them to map to the appropriate
  24. ! one of "black" or "white" on monochrome systems.
  25. ! The valid color names on your system can be found by looking in the file
  26. ! `rgb.txt', usually found in /usr/lib/X11/ or /usr/openwin/lib/X11/.
  27.  
  28. ! Set the modeline colors.
  29. Emacs.modeline*attributeForeground:    Black
  30. Emacs.modeline*attributeBackground:    Gray75
  31.  
  32. ! Set the color of the text cursor.
  33. Emacs.text-cursor*attributeBackground:    Red3
  34.  
  35. ! If you want to set the color of the mouse pointer, do this:
  36. ! Emacs.pointer*attributeForeground:    Black
  37. ! If you want to set the background of the mouse pointer, do this:
  38. ! Emacs.pointer*attributeBackground:    White
  39. ! Note that by default, the pointer foreground and background are the same
  40. ! as the default face.
  41.  
  42. ! Set the menubar colors.  This overrides the default foreground and
  43. ! background colors specified above.
  44. *menubar*Foreground:            Gray30
  45. *menubar*Background:            Gray75
  46. ! This is for buttons in the menubar.  
  47. ! Yellow would be better, but that would map to white on monochrome.
  48. *menubar*buttonForeground:        Blue
  49. *XlwMenu*selectColor:            ForestGreen
  50. *XmToggleButton*selectColor:        ForestGreen
  51.  
  52. ! Specify the colors of popup menus.
  53. *popup*Foreground:            Black
  54. *popup*Background:            Gray75
  55.  
  56. ! Specify the colors of the various sub-widgets of the dialog boxes.
  57. *dialog*Foreground:            Black
  58. ! #A5C0C1 is a shade of blue
  59. *dialog*Background:            #A5C0C1
  60. ! The following three are for Motif dialog boxes ...
  61. *dialog*XmTextField*Background:        WhiteSmoke
  62. *dialog*XmText*Background:        WhiteSmoke
  63. *dialog*XmList*Background:        WhiteSmoke
  64. ! While this one is for Athena dialog boxes.
  65. *dialog*Command*Background:        WhiteSmoke
  66.  
  67. ! Xlw Scrollbar colors
  68. *XlwScrollBar*Foreground:        Gray30
  69. *XlwScrollBar*Background:        Gray75
  70. *XmScrollBar*Foreground:        Gray30
  71. *XmScrollBar*Background:        Gray75
  72.  
  73. !
  74. ! The Lucid Scrollbar supports two added resources, SliderStyle is either
  75. ! "plain" (default) or "dimple".  Dimple puts a small dimple in the middle
  76. ! of the slider that depresses when the slider is clicked on.  ArrowPosition is
  77. ! either "opposite" (default) or "same".  Opposite puts the arrows at opposite
  78. ! of the scrollbar, same puts both arrows at the same end, like the Amiga.
  79. !
  80. ! Emacs*XlwScrollBar.SliderStyle:    dimple
  81. ! Emacs*XlwScrollBar.ArrowPosition:  opposite
  82.  
  83.  
  84. !
  85. ! If you want to turn off a toolbar, set its height or width to 0.
  86. ! The correct size value is not really arbitrary.  We only control it
  87. ! this way in order to avoid excess frame resizing when turning the
  88. ! toolbars on and off.
  89. !
  90. ! To change the heights and widths of the toolbars:
  91. !
  92. ! Emacs.topToolBarHeight:        37
  93. ! Emacs.bottomToolBarHeight:        0
  94. ! Emacs.leftToolBarWidth:        0
  95. ! Emacs.rightToolBarWidth:        0
  96.  
  97. !*topToolBarShadowColor:            Gray90
  98. !*bottomToolBarShadowColor:        Gray40
  99. *backgroundToolBarColor:        Gray75
  100. *toolBarShadowThickness:        2
  101.  
  102.  
  103. ! If you want to turn off vertical scrollbars, or change the default
  104. ! pixel width of the vertical scrollbars, do it like this (0 width
  105. ! means no vertical scrollbars):
  106. ! Emacs.scrollBarWidth: 0
  107. ! To change it for a particular frame, do this:
  108. ! Emacs*FRAME-NAME.scrollBarWidth: 0
  109.  
  110.  
  111. ! If you want to turn off horizontal scrollbars, or change the default
  112. ! pixel height of the horizontal scrollbars, do it like this (0 height
  113. ! means no horizontal scrollbars):
  114. ! Emacs.scrollBarHeight: 0
  115. ! To change it for a particular frame, do this:
  116. ! Emacs*FRAME-NAME.scrollBarHeight: 0
  117.  
  118.  
  119. ! To dynamically change the labels used for menubar buttons...
  120. ! Emacs*XlwMenu.resourceLabels: True
  121. ! Emacs*XlwMenu.newFrame.labelString: Open Another Window
  122.  
  123. ! To have the Motif scrollbars on the left instead of the right, do this:
  124. ! Emacs*scrollBarPlacement: BOTTOM_LEFT
  125. !
  126. ! To have the Athena scrollbars on the right, use `BOTTOM_RIGHT' instead
  127.  
  128. ! To have Motif scrollbars act more like Xt scrollbars...
  129. !
  130. ! Emacs*XmScrollBar.translations: #override \n\
  131. !     <Btn1Down>:     PageDownOrRight(0)    \n\
  132. !     <Btn3Down>:     PageUpOrLeft(0)
  133.  
  134. ! Fonts.
  135. ! ======
  136. ! XEmacs requires the use of XLFD (X Logical Font Description) format font
  137. ! names, which look like
  138. !     *-courier-medium-r-*-*-*-120-*-*-*-*-*-*
  139. ! if you use any of the other, less strict font name formats, some of which
  140. ! look like
  141. !         lucidasanstypewriter-12
  142. ! and        fixed
  143. ! and        9x13
  144. ! then XEmacs won't be able to guess the names of the bold and italic versions.
  145. ! All X fonts can be referred to via XLFD-style names, so you should use those
  146. ! forms.  See the man pages for X(1), xlsfonts(1), and xfontsel(1).
  147.  
  148.  
  149. ! The default font for the text area of XEmacs is chosen at run-time
  150. ! by lisp code which tries a number of different possibilities in order
  151. ! of preference.  If you wish to override it, use this:
  152. ! Emacs.default.attributeFont:  -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  153.  
  154. ! If you choose a font which does not have an italic version, you can specify
  155. ! some other font to use for it here:
  156. ! Emacs.italic.attributeFont:  -*-courier-medium-o-*-*-*-120-*-*-*-*-iso8859-*
  157. !
  158. ! And here is how you would set the background color of the `highlight' face,
  159. ! but only on the screen named `debugger':
  160. ! Emacs*debugger.highlight.attributeBackground:        PaleTurquoise
  161. ! See the NEWS file (C-h n) for a more complete description of the resource
  162. ! syntax of faces.
  163.  
  164.  
  165. ! Font of the modeline, menubar and pop-up menus.
  166. ! Note that the menubar resources do not use the `face' syntax, since they
  167. ! are X toolkit widgets and thus outside the domain of XEmacs proper.
  168. *menubar*Font:             -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
  169. *popup*Font:            -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
  170.  
  171. ! Font in the Motif dialog boxes.
  172. ! (Motif uses `fontList' while most other things use `font' - if you don't
  173. ! know why you probably don't want to.)
  174. *XmDialogShell*FontList:    -*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-*
  175. *XmTextField*FontList:        -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  176. *XmText*FontList:        -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  177. *XmList*FontList:        -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*
  178.  
  179. ! Font in the Athena dialog boxes.
  180. ! I think 14-point looks nicer than 12-point.
  181. ! Some people use 12-point anyway because you get more text, but
  182. ! there's no purpose at all in doing this for dialog boxes.
  183.  
  184. *Dialog*Font:            -*-helvetica-bold-r-*-*-*-140-*-*-*-*-iso8859-*
  185.  
  186. ! Dialog box translations.
  187. ! =======================
  188.  
  189. ! This accelerator binds <return> in a dialog box to <activate> on button1
  190. *dialog*button1.accelerators:#override\
  191. <KeyPress>Return: ArmAndActivate()\n\
  192. <KeyPress>KP_Enter: ArmAndActivate()\n\
  193. Ctrl<KeyPress>m: ArmAndActivate()\n
  194.  
  195. ! Translations to make the TextField widget behave more like XEmacs
  196. *XmTextField*translations: #override\n\
  197.     !<Key>osfBackSpace:    delete-previous-character()\n\
  198.     !<Key>osfDelete:    delete-previous-character()\n\
  199.     !Ctrl<Key>h:         delete-previous-character()\n\
  200.     !Ctrl<Key>d:         delete-next-character()\n\
  201.     !Meta<Key>osfDelete:    delete-previous-word()\n\
  202.     !Meta<Key>osfBackSpace:    delete-previous-word()\n\
  203.     !Meta<Key>d:        delete-next-word()\n\
  204.     !Ctrl<Key>k:        delete-to-end-of-line()\n\
  205.     !Ctrl<Key>g:        process-cancel()\n\
  206.     !Ctrl<Key>b:        backward-character()\n\
  207.     !<Key>osfLeft:        backward-character()\n\
  208.     !Ctrl<Key>f:        forward-character()\n\
  209.     !<Key>osfRight:        forward-character()\n\
  210.     !Meta<Key>b:        backward-word()\n\
  211.     !Meta<Key>osfLeft:    backward-word()\n\
  212.     !Meta<Key>f:        forward-word()\n\
  213.     !Meta<Key>osfRight:    forward-word()\n\
  214.     !Ctrl<Key>e:        end-of-line()\n\
  215.     !Ctrl<Key>a:        beginning-of-line()\n\
  216.     !Ctrl<Key>w:        cut-clipboard()\n\
  217.     !Meta<Key>w:        copy-clipboard()\n\
  218.     <Btn2Up>:        copy-primary()\n
  219.  
  220. ! With the XEmacs typeahead it's better to not have space be bound to
  221. ! ArmAndActivate() for buttons that appear in dialog boxes.  This is
  222. ! not 100% Motif compliant but the benefits far outweight the
  223. ! compliancy problem.  
  224. *dialog*XmPushButton*translations:#override\n\
  225.     <Btn1Down>:         Arm()\n\
  226.     <Btn1Down>,<Btn1Up>: Activate()\
  227.             Disarm()\n\
  228.     <Btn1Down>(2+):     MultiArm()\n\
  229.     <Btn1Up>(2+):       MultiActivate()\n\
  230.     <Btn1Up>:           Activate()\
  231.                 Disarm()\n\
  232.     <Key>osfSelect:      ArmAndActivate()\n\
  233.     <Key>osfActivate:   ArmAndActivate()\n\
  234.     <Key>osfHelp:    Help()\n\
  235.     ~Shift ~Meta ~Alt <Key>Return:    ArmAndActivate()\n\
  236.     <EnterWindow>:      Enter()\n\
  237.     <LeaveWindow>:      Leave()\n
  238.  
  239. ! XIM input method style 
  240. ! ======================= 
  241.  
  242. ! ximStyles is a (whitespace or comma-separated) list of XIMStyles in
  243. ! order of user's preference.  
  244. ! Choose a subset of the following styles or reorder to taste
  245. *ximStyles: XIMPreeditPosition|XIMStatusArea\
  246.             XIMPreeditPosition|XIMStatusNothing\
  247.             XIMPreeditPosition|XIMStatusNone\
  248.             XIMPreeditNothing|XIMStatusArea\
  249.             XIMPreeditNothing|XIMStatusNothing\
  250.             XIMPreeditNothing|XIMStatusNone\
  251.             XIMPreeditNone|XIMStatusArea\
  252.             XIMPreeditNone|XIMStatusNothing\
  253.             XIMPreeditNone|XIMStatusNone
  254.  
  255. ! XIM Preedit and Status foreground and background
  256. *EmacsFrame.ximForeground: black
  257. *EmacsFrame.ximBackground: white
  258.  
  259. ! XIM fontset (defaults to system fontset default)
  260. ! *EmacsFrame.FontSet: -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-*
  261.